Skip to main content

EQL

1. What is EQL?

EQL (Energyworx Query Language) is your powerful tool for exploring and analyzing energy data. If you're familiar with SQL, you'll feel right at home—EQL uses the same straightforward syntax you already know, but it's specifically designed to work seamlessly with energy data and time-based information.

What can you do with EQL?

  • Search and explore your data in real-time
  • Create custom reports tailored to your needs
  • Analyze process results and system performance
  • Build dynamic, interactive dashboard visualizations

2. Where you'll use EQL

Access powerful data exploration directly from your navigation bar, just click on the search section to get started.

Advanced-Search

Quick start video:

This video shows you how to search by ID, tags, and use advanced search features.

Dashboard Widgets

Create visualizations to monitor your energy data:

Available widget types:

  • Lists - Display filtered data sets
  • Statistics - Show key metrics with conditional formatting (highlight important values)
  • Charts - Visualize trends with Area, Line, Column, or Stacked Column charts
  • Tables - Present detailed data in an organized format

All widgets are built using EQL queries, giving you complete control over what data to display and how to present it.

Recipes: Save Time with Templates

Recipes are reusable query templates that make creating widgets faster and easier.

Benefits:

  • Save your most-used queries as templates
  • Share recipes with your team (available from version 24.04)
  • Customize recipes with parameters for different use cases

3. What Data Can You Access?

EQL gives you access to all your essential energy platform data:

Data TypeWhat It ContainsWhy You'd Use It
TimeseriesEnergy readings, measurements, and calculations over timeTrack consumption, analyze trends, compare periods
DatasourcesInformation about meters, devices, and their channelsUnderstand your data sources, verify configurations
Latest DatasourcesMost current version of all your meters and devicesQuick access to current configurations without historical versions
FlowProcess execution results and calculation outputsMonitor system processes, verify data transformations
Audit EventsSystem activity logs and event historyTrack changes, troubleshoot issues, maintain compliance
GenericCustom data specific to your projectAccess specialized data structures (contact support to enable)

Tip: Explore the schemas tab in Advanced Search to see all available tables and their fields.

4. Query Reference

Understanding Your Data

EQL supports various types of data:

TypeExamplesUse For
Numbers123, 45.67, 1000000Consumption values, costs, quantities
Text"Building A", "Active"Names, descriptions, status values
Dates & Times2024-01-15, 14:30:00Timestamps, date ranges, scheduling
True/FalseActive/Inactive, On/OffStatus flags, conditions
Lists & GroupsMultiple values, nested dataComplex data structures

Writing Queries

Here's the basic structure for an EQL query:

    SELECT [what you want to see]
FROM [which table]
WHERE [filter conditions]
GROUP BY [how to group results]
HAVING [group filters]
ORDER BY [sort order]
LIMIT [maximum number of results]

Example - Find high consumption meters:

SELECT meter_id, consumption
FROM timeseries
WHERE consumption > 1000
ORDER BY consumption DESC
LIMIT 10

Working with Historical Data

Important to know: By default, queries look back one year from today. This keeps your searches fast and efficient.

Need older data? That's possible as well. You can access historical data by specifying a date range using the insert_ts fields in your query.

Example - Query data from 2 years ago:

SELECT *
FROM tags
WHERE insert_ts >= '2023-01-01'
AND insert_ts < '2023-12-31'

Need help? The Advanced Search interface includes built-in help with examples and syntax guidance. Click the help icon to access it anytime.